GtkDragSource: Pass return value of drag-cancel into drag_end()
authorAlexander Larsson <alexl@redhat.com>
Thu, 14 May 2020 08:44:07 +0000 (10:44 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 14 May 2020 08:44:07 +0000 (10:44 +0200)
This is needed to work as the docs say (don't play fallback cancel animation
if cancel returned TRUE to signal the drop already happened).

gtk/gtkdragsource.c

index 1cb8674aa8509c14c6ef182cf8de26720c38668d..779fbefb814fdcf9157c80aafde9954797803be9 100644 (file)
@@ -436,7 +436,7 @@ gtk_drag_source_cancel_cb (GdkDrag             *drag,
   gboolean success = FALSE;
 
   g_signal_emit (source, signals[DRAG_CANCEL], 0, source->drag, reason, &success);
-  drag_end (source, FALSE);
+  drag_end (source, success);
 }
 
 static void